public class StoredDataList.StoredData
extends java.lang.Object
| Constructor and Description |
|---|
StoredData()
Create an instance of StoredData
|
StoredData(DataType type,
java.lang.String data)
Create an instance of StoredData
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getData()
Returns data for a StoredData instance.
|
DataType |
getType()
Returns the data type of the StoredData instance.
|
void |
setData(java.lang.String data)
Sets the data for the StoredData instance.
|
void |
setType(DataType type)
Sets the data type of the StoredData instance.
|
java.lang.String |
toString() |
public StoredData()
public StoredData(DataType type, java.lang.String data)
type - The DataType enumeration that represents the data type.data - A string representing the data.public DataType getType()
public void setType(DataType type)
type - The DataType enumeration that represents the data type.public java.lang.String getData()
public void setData(java.lang.String data)
data - A string representing the data.public java.lang.String toString()
toString in class java.lang.Object